home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / ip20t21a.lha / IFX20to21a_Patch / Patches2.lha / Rexx / AutoFX / EOT_Ripple.ifx.pre < prev    next >
Text File  |  1995-04-18  |  1KB  |  46 lines

  1. /*
  2.  * EOT_Ripple.ifx.pre
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * Simple wave distort effect.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Sequence number (?)
  9.  *    Word(Arg(1),2) = Total number of frames (N)
  10.  *
  11.  * Returns:
  12.  *    0 if successful, non-zero on failure
  13.  *
  14.  */
  15.  
  16. OPTIONS RESULTS
  17.  
  18. base  = 'Autofx_Ripple_'
  19.  
  20. x1    = GETCLIP(base||'x1')
  21. y1    = GETCLIP(base||'y1')
  22. size  = GETCLIP(base||'size')
  23. ampl  = GETCLIP(base||'ampl')
  24.  
  25. IF x1 = "" THEN x1 = -1
  26. IF y1 = "" THEN y1 = -1
  27. IF size = "" THEN size = 20
  28. IF ampl = "" THEN ampl = 20
  29.  
  30. Gadget.1 = 'INTEGER 200  5 50 14 "Center of Ripple X:"' x1
  31. Gadget.2 = 'INTEGER 300  5 50 14 "Y:"' y1
  32. Gadget.3 = 'TEXT    215 20  1  1 "(-1,-1 selects the exact center of the image.)" JU=2'
  33. Gadget.4 = 'INTEGER 200 32 50 14 "Amplitude:"' ampl
  34. Gadget.5 = 'INTEGER 200 47 50 14 "Wavelength:"' size
  35. Gadget.6 = 'END'
  36.  
  37. NewComplexRequest '"Ripple"' Gadget 430 67
  38. IF rc ~= 0 THEN EXIT rc
  39.  
  40. CALL SETCLIP(base||'x1', result.1)
  41. CALL SETCLIP(base||'y1', result.2)
  42. CALL SETCLIP(base||'ampl', result.4)
  43. CALL SETCLIP(base||'size', result.5)
  44.  
  45. EXIT
  46.